<!DOCTYPE html>
<html>

<head>
    <include file="Share:meta" />
    <script src="../Public/plugins/jsFormat/jsFormat.js"></script>
    <script src="../Public/plugins/citySelect/jsAddress.js"></script>
</head>

<body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        <include file="Share:header" />
        <include file="Share:left" />
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>订单<small></small></h1>
                <ol class="breadcrumb">
                    <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                    <li class="active">订单详情</li>
                </ol>
            </section>
            <!-- Main content -->
            <section class="content">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">订单详情</h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form class="form-horizontal" action="" method="post" enctype="multipart/form-data">
                        <input type="hidden" name="oid" value="{$info.oid}" />
                        <input type="hidden" name="order_no" value="{$info.order_no}" />
                        <div class="box-body">
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">订单号</label>
                                <div class="col-sm-10">
                                    <input type="text" name="shipping_name" id="inputEventCode" class="form-control" value="{$info.order_no}" placeholder="" readonly="" required="required" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">收货人</label>
                                <div class="col-sm-10">
                                    <input type="text" name="shipping_name" id="inputEventCode" class="form-control" value="{$info.shipping_name}" placeholder="" disabled="" required="required" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">联系电话</label>
                                <div class="col-sm-10">
                                    <input type="text" name="shipping_mobile" id="inputEventCode" class="form-control" value="{$info.shipping_mobile}" placeholder="" disabled="" required="required" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">省/市/县</label>
                                <div class="col-sm-10">
                                    <div id="city">
                                        <div class="col-sm-4 npl">
                                            <select name="shipping_province" disabled="" id="proviceId" class="form-control" required="required">
                                                <option value=""></option>
                                            </select>
                                        </div>
                                        <div class="col-sm-4">
                                            <select name="shipping_city" id="cityId" disabled="" class="form-control" required="required">
                                                <option value=""></option>
                                            </select>
                                        </div>
                                        <div class="col-sm-4 npr">
                                            <select name="shipping_distinct" disabled="" id="districtId" class="form-control" required="required">
                                                <option value=""></option>
                                            </select>    
                                        </div>   
                                    </div>
                                    
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">地址</label>
                                <div class="col-sm-10">
                                    <input type="text" name="shipping_address" id="inputEventCode" class="form-control" value="{$info.shipping_address}" placeholder="" disabled="" required="required" autocomplete="off">
                                </div>
                            </div>
                         
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">名片电子版</label>
                                <div class="col-sm-10">
                                    <div class="btn-group">
                                        <empty name="info.order_img">
                                            暂无文件
                                            <else />
                                            <a class="btn btn-large btn-block btn-default" href="__APP__/Admin/Order/download/order_no/{$info.order_no}" role="button" target="_blank">下载文件</a>
                                        </empty>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">金额</label>
                                <div class="col-sm-10">
                                    <input type="number" name="number" id="inputEventCode" class="form-control" value="{$info.order_price}" autocomplete="off" disabled="disabled">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">数量</label>
                                <div class="col-sm-10">
                                    <input type="number" name="number" disabled="" id="inputEventCode" class="form-control" value="{$info.number}" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">订单状态</label>
                                <div class="col-sm-10">
                                    <select name="order_status" id="order_status" class="form-control" required="required">
                                        <option value="0">取消订单</option>
                                        <option value="3">电子版文件错误</option>
                                        <option value="7">等待印刷中</option>
                                        <option value="10">已发货</option>
                                        <option value="11">订单完成</option>
                                    </select>
                                </div>
                            </div>
                            <script type="text/javascript">
                                $("#order_status").val("{$info.order_status}");
                            </script>
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer col-sm-offset-2">
                            <button type="submit" class="btn btn-primary">
                                保存
                            </button>
                            <a class="btn btn-warning" href="__APP__/Admin/Order/factoryorder" role="button">返回</a>
                        </div>
                        <br>
                        <!-- /.box-footer -->
                    </form>
                </div>
                
                <notempty name="log">
            	<div class="row">
                    <div class="col-xs-12">
                        <ul class="timeline">
                            <li class="time-label">
                                <span class="bg-blue">订单变更记录</span>
                            </li>
                            <volist name="log" id="vo">
                                <li>
                                    <i class="fa fa-user bg-aqua"></i>
                                    <div class="timeline-item">
                                        <span class="time"><i class="fa fa-clock-o"></i> {$vo.ctime}</span>
                                        <h3 class="timeline-header">[{$vo.action}]</h3>
                                        <div class="timeline-body">描述: {$vo.msg}</div>
                                        <div class="timeline-body" style="display:none;">操作人: {$vo.uid}</div>
                                    </div>
                                </li>
                            </volist>
                        </ul>
                    </div>
                </div>
                </notempty>
              
            </section>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->
        <include file="Share:copyright" />
        <include file="Share:setting" />
    </div>
    <include file="Share:js" />
    <script type="text/javascript">
        $("#OrderManager").addClass("active");
        $("#order_factoryorder").addClass("active");
        $(function() {
            addressInit('proviceId', 'cityId', 'districtId', '{$info.shipping_province}', '{$info.shipping_city}', '{$info.shipping_distinct}');
            
        });
    
    </script>
</body>

</html>
